<!DOCTYPE html>
<html>

<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta charset="utf-8"/>
    <title>后台管理系统</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="/assets/libs/layui/css/layui.css"/>
    <link rel="stylesheet" href="/assets/css/admin.css"/>
    <link rel="stylesheet" href="/assets/css/common.css" />
    <link rel="stylesheet" href="/module/formSelects/formSelects-v4.css"/>
</head>
<body class="layui-layout-body">
    <div class="layui-layout layui-layout-admin">
        <!-- 头部 -->
        <div class="layui-header" p-com="header"></div>

        <!-- 侧边栏 -->
        <div class="layui-side" p-com="side"></div>

        <!-- 主体部分 -->
        <div class="layui-body" id="layui-body"></div>

        <!-- 手机屏幕遮罩层 -->
        <div class="site-mobile-shade"></div>
    </div>

    <script src="//cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
    <script src="/assets/libs/layui/layui.js"></script>
    <script src="/assets/libs/q.js"></script>
    <script src="/assets/libs/pandyle.min.js"></script>
    <script src="//cdn.bootcss.com/limonte-sweetalert2/7.33.1/sweetalert2.all.min.js"></script>
    <script src="/module/global.js"></script>
    <script src="/assets/libs/aliyun-oss-sdk-4.4.4.min.js"></script>

    <script>
        var index = null;
        initialize({
            module: ['index'],
            init: function () {
                index = layui.index;
                index.initLeftNav();
            }
        })
        var admin = {
            cache: function () {
                soda.tips.confirm({
                    text: '是否要更新当前数据缓存？',
                    confirm: function () {
                        index.initLeftNav();
                    }
                });
            },
            password: function () {
                app.page({
                    url: '/components/tpl/password.html',
                    height: '280px',
                    finish: function () {

                    },
                    init: function () {

                    },
                    opt: function () {

                    }
                });
            },
            exit: function () {
                soda.tips.confirm({
                    text: '是否要退出系统?',
                    confirm: function () {
                        soda.session.clean();
                        var param = {
                            url: api.common.exit,
                            callback: function(){
                                window.location.href = '/login.html';
                            }
                        }
                        soda.http.get(param);
                    }
                });
            }
        }
    </script>
</body>
</html>